<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<c:import url="/includes/header.jsp"></c:import>
</head>
<body>
	<div class="container" id="pager2">
		<form id="listForm" method="post"
			action="${pageContext.request.contextPath}/admin/user/list.do">
			<div class="row">
				<div class="col-sm-3 col-sm-offset-9">
					<input type="text" name="queryMap['phone']"
						class="form-control search" value="${pageModel.queryMap['phone']}"
						placeholder="输入手机号">
				</div>
			</div>
			<div class="row" style="margin-top: 10px">
				<table class="table table-bordered table-hover">
					<tr>
						<th>姓名</th>
						<th>手机号</th>
						<th>常用平台</th>
						<th>累计消费金额</th>
						<th>积分</th>
					</tr>
					<c:forEach items="${list}" var="a">
						<tr>
							<td>${a.name}</td>
							<td>${a.phone}</td>
							<%-- 							<td><fmt:formatDate value="${a.createAt}" --%>
							<%-- 									pattern="yyyy-MM-dd HH:mm:ss" /></td> --%>
							<td><c:if test="${a.ele_money!= '0.00'}">
									饿了么&nbsp;&nbsp;
								</c:if> <c:if test="${a.mt_money!= '0.00'}">
									 美团外卖
								</c:if></td>

							<td>${a.ele_money+a.mt_money }</td>
							<td>${a.integral }</td>

						</tr>
					</c:forEach>
				</table>
				<c:import url="/includes/page.jsp"></c:import>
			</div>
		</form>
	</div>
</body>
</html>
<script type="text/javascript">
	$(function() {
		$(".search").keydown(function(e) {
			if (e.which == "13") {
				$("#listForm").submit();
			}
		});
	})
</script>
